import pytest,allure
import json,jsonpath, os
from common.Request import Request
from common.fileFunc import fileOperation

def test_abobo(login,go):
    print("执行方法一")
    print(login)
    print(go)


def test_gaga():
    print("执行方法二")

# class Test_demo:
#     def test_coco(self,login):
#         print("类中方法一")
#     def test_hoho(self,login):
#         print("类中方法二")


@pytest.fixture(scope="module")
def login():
    print("先登陆")
    a = {"a":124,"b":456}
    yield a
    print("退出登陆")

@pytest.fixture(scope="module")
def go():
    a = {"a":789,"b":110}
    return a


if __name__ == '__main__':
    # pytest.main(['-sq','test_innis_cases.py'])
    pytest.main(["-sq","-v=test_innis_cases.py::test_gaga"])